package adapter.adapt;

import adapter.printsys.XPrintlntf;
import adapter.thridpartsdk.XPrint;
//对象适配器
public class XPrintlntfAdapter implements XPrintlntf {

    XPrint xPrint;

    public XPrintlntfAdapter(XPrint xPrint) {
        this.xPrint = xPrint;
    }

    @Override
    public void print(String str) {
        xPrint.draw(str);
    }
}
